package net.lzzy;

public class Elliptic extends GeometricObject{
    double a;
    double b;
    public Elliptic(){
    }

    public Elliptic(double a,double b){
        this.a=a;
        this.b=b;
    }
    public double getArea() {
        return a*b*Math.PI;
    }

    @Override
    public double getPerimeter() {
        return 2*b*Math.PI+4*(a-b);
    }
}
